home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
STRAOB
/
TEST2.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-03-09
|
1KB
|
64 lines
PROGRAM TEST2;
{$M 20000,0,100000}
Uses PbMISC, PbDATA, TEXTobjs;
{
Description : Show STRA Loadsection method
Author : Howard Richoux
Date :
Last revised:
Application : IBM PC and compatibles, done in Turbo Pascal 7
Status : Placed in the Public Domain by HNR Software January 31, 1994
Published in: none
}
{*****************************************************************}
Procedure GoOn;
var x,y : STRA_object;
i,xmax : integer;
begin
y.init(300);
y.loadsectlist('misccore.inc','{section ');
writeln('MISCCORE.INC has lots of procedures with section comments.');
writeln('They look like "{section IntegerStr }" ');
writeln('Here are some: ');
writeln('');
for i := 35 to 39 do writeln('section ',i:3,' ',y.fetchN(i));
xmax := 100;
x.init(xmax);
x.loadsection('misccore.inc','{section ','integerstr');
writeln('');
writeln('TEST2 is loading just the section "integerstr" into memory.');
writeln('Here is what we loaded from MISCCORE.INC');
writeln('');
x.dump;
y.done;
x.done;
end;
Procedure Init;
begin
end;
(* Main program *)
BEGIN
pProgID := 'TEST 1.00';
Init;
GoOn;
end.